import {
  summaryStuAttend
} from '@/api/attend.js'
export default {
  name: 'prepare',
  data() {
    return {
      showSigner: true,
      course: {
        title: '课程名称'
      },
      tableData: [],
      centerDialogVisible: false,
      classes: {
        placeholder: '请选择班级',
        value: '',
        options: [{
          value: 1,
          label: '班级一'
        }, {
          value: 2,
          label: '班级二'
        }, {
          value: 3,
          label: '班级三'
        }, {
          value: 4,
          label: '班级四'
        }, {
          value: 5,
          label: '班级五'
        }]
      },
      status: 0
    }
  },
  created() {
    this.getDatas()
  },
  mounted() {},
  methods: {
    getDatas() {
      summaryStuAttend({
        courseId: this.$route.query.courseId
      }).then(response => {
        if (response.code === 200 || response.code === 20000) {
          console.log('5' + response.data)
          this.tableData = response.data
        } else {
          console.log(response)
        }
      })
    },
    row_click(row, column, event) {
      this.$router.push({
        path: 'step2',
        query: {
          courseId: this.$route.query.courseId,
          courseName: this.$route.query.courseName,
          courseCatalogId: row.courseCatalogId
        }
      })
    }
  }
}
